Query language
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
A query language, also known as data query language or database query language (DQL), is a computer language used to make queries in databases and information systems. In database systems, query languages rely on strict theory to retrieve information.cite-ref-1[1] A well known example is the Structured Query Language (SQL).
Contents
• Types
• Examples
• See also
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Types
Broadly, query languages can be classified according to whether they are database query languages or information retrieval query languages. The difference is that a database query language attempts to give factual answers to factual questions, while an information retrieval query language attempts to find documents containing information that is relevant to an area of inquiry. Other types of query languages include:
• Full-text. The simplest query language is treating all terms as bag of words that are to be matched with the postings in the inverted index and where subsequently ranking models are applied to retrieve the most relevant documents. Only tokens are defined in the CFG. Web search engines often use this approach.
• Boolean. A query language that also supports the use of the Boolean operators AND, OR, NOT.
• Structured. A language that supports searching within (a combination of) fields when a document is structured and has been indexed using its document structure.
• Natural language. A query language that supports natural language by parsing the natural language query to a form that can be best used to retrieve relevant documents, for example with Question answering systems or conversational search.
Examples
• Attempto Controlled English is a query language that is also a controlled natural language.cite-ref-flairs-2006-2-0[2]
• .QL is a proprietary object-oriented query language for querying relational databases; successor of Datalog;
• Contextual Query Language (CQL) a formal language for representing queries to information retrieval systems such as web indexes or bibliographic catalogues.
• DMX is a query language for data mining models;
• Datalog is a query language for deductive databases;
• F-logic is a declarative object-oriented language for deductive databases and knowledge representation.
• Gellish English is a language that can be used for queries in Gellish English Databases, for dialogues (requests and responses) as well as for information modeling and knowledge modeling;cite-ref-4[4]
• Gremlin is an Apache Software Foundation graph traversal language for OLTP and OLAP graph systems.
• GraphQL is a data query language developed by Facebook as an alternate to REST and ad-hoc webservice architectures.
• Jaql is a functional data processing and query language most commonly used for JSON query processing;
• LDAP is an application protocol for querying and modifying directory services running over TCP/IP;
• LogiQL is a variant of Datalog and is the query language for the LogicBlox system.
• M Formula language, a mashup query language used in Microsoft's Power Query
• MQL is a cheminformatics query language for a substructure search allowing beside nominal properties also numerical properties;
• Poliqarp Query Language is a special query language designed to analyze annotated text. Used in the Poliqarp search engine;
• PQL is a special-purpose programming language for managing process models based on information about scenarios that these models describe;
• PRQL PRQL (Pipelined Relational Query Language) is a modern language for transforming data. Consists of a curated set of orthogonal transformations, which are combined together to form a pipeline.
• PTQL based on relational queries over program traces, allowing programmers to write expressive, declarative queries about program behavior.
• XQuery is a query language for XML data sources;
• XPath is a declarative language for navigating XML documents;
See also
References
cite-note-flairs-2006-22. ↑ citerefnorbert-e-fuchskaarel-kaljurandgerold-schneider2006Norbert E. Fuchs; Kaarel Kaljurand; Gerold Schneider (2006). "Attempto Controlled English Meets the Challenges of Knowledge Representation, Reasoning, Interoperability and User Interfaces" (PDF). FLAIRS 2006.
cite-note-33. ↑ "FQL Overview". Facebook Developers. Archived from the original on 2013-12-18. Retrieved 2013-12-11.
cite-note-44. ↑ http://gellish.wiki.sourceforge.net/Querying+a+Gellish+English+database
cite-note-55. ↑ "Search operators". Google Inc. Retrieved August 22, 2015.
cite-note-66. ↑ "Bing Query Language". Microsoft. 22 June 2010. Retrieved August 22, 2015.